﻿<controls:ChildWindow 
           x:Class="AdminModule.Views.SelectAddTypeWindow"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           Width="400" Height="300" 
           Title="Тип объекта" Loaded="ChildWindow_Loaded">
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>

        <Button x:Name="CancelButton" Content="Отмена" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,8,103,4" Grid.Row="1" />
        <Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Height="23" Margin="121,8,182,4" Grid.Row="1" />
        <ListBox x:Name="itemList">
            <ListBox.ItemTemplate>
                <DataTemplate>
                    <RadioButton x:Name="typeRadioButton" Click="typeRadioButton_Click" Tag="{Binding}" Content="{Binding Name}"></RadioButton>
                </DataTemplate>
            </ListBox.ItemTemplate>
        </ListBox>
    </Grid>
</controls:ChildWindow>